package com.lwj.liwanjia.model;

import com.lwj.liwanjia.api.ApiService;
import com.lwj.liwanjia.bean.ShenqinBean;
import com.lwj.liwanjia.utils.RetrofitHelper;

import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import okhttp3.MediaType;
import okhttp3.RequestBody;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2017/10/21.
 */

public class ShenqingModel {
    public void shenqingIndent(Map<String, Object> map, Subscriber<ShenqinBean> subscriber) {
        RetrofitHelper.getSingleRetrofit().create(ApiService.class)
                .shenqinIndent(map)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
